package com.spboot.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.spboot.entity.Like;
import com.spboot.entity.Moddletable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author guocb
 * @since 2020-04-27
 */
public interface ModdletableMapper extends BaseMapper<Moddletable> {

    Integer selecttableid(Long informationid, Long editionid, Long colorid, Long priceid);

    /**
     * 查询用户喜欢
     * @param userid
     * @param page
     * @param paramWrapper
     * @return
     */
    IPage<Moddletable> likeall(Integer userid, IPage<Moddletable> page, @Param("ew") Wrapper<Moddletable> paramWrapper);
}
